package com.jml.juc;

public enum CountryEnum {

    ZERO(0, "zz"),ONE(1, "qi"), TWO(2, "chu"), THREE(3, "yan"), FOUR(4, "zhao"), FIVE(5, "wei"), SIX(6, "han");

     private  Integer count;
    private String s;

    CountryEnum(int count, String s) {
        this.count = count;
        this.s = s;
    }

    public String getS() {
        return s;
    }

    public static CountryEnum forEach_Enum(int index) {
        CountryEnum[] values = CountryEnum.values();
        for (CountryEnum element: values) {
            if(index==element.count){
                return element;
            }
        }
        return null;
    }
}
